import http from "@/utils/http";
export const getList = (params) => {
  return http.get("/kycx/list", params);
};
//获取数据统计
export const getCount = (params) => {
  return http.get("/kycx/list-statistics", params);
};
//新增
export const addRecords = (params) => {
  return http.post(`/kycx/add`, params);
};
//编辑
export const editRecords = (params) => {
  return http.post(`/kycx/update`, params);
};
//删除
export const delRecords = ({ id, type }) => {
  return http.del(`/kycx/del/${id}/${type}`);
};
//详情
export const recordsDetail = (id, type) => {
  return http.get(`/kycx/${id}/${type}`);
};
//导出
export const exportRecords = (params = {}) => {
  return http.post("/kycx/export", params, {
    responseType: "blob",
  });
};
